< previous page page_756 next page >

Page 756
· Remote data control alternative: If your Visual Basic program will be operating only in a 32-bit environment and you have the Enterprise Edition of Visual Basic, you can use the RDC and the RDOs to connect to the ODBC data source. The RDC/RDOs platform is a replacement for the ODBC API you learned today. Although it is easier to deal with the RDC/RDOs platform, you must use the 32-bit version of Visual Basic, and your program must run on a 32-bit operating system. If your program must run on a 16-bit operating system, you still can use the ODBC API and the examples from this chapter.
Summary
Today you learned how to use the ODBC API set to directly link your Visual Basic program to target data sources via the ODBC interface. The ODBC interface generally is faster than Microsoft Jet when it comes to linking to ODBC-defined data sources.
You also looked at installing the ODBC interface on your workstation and using the ODBC Administrator program to install ODBC driver sets and to define data sources for ODBC connections.
You learned how to build a program library that uses a minimum set of ODBC API calls along with several Visual Basic wrapper routines. This library set provides the basic functions necessary to read and write data to and from a defined ODBC data source. You can use these routines to create fully functional data-entry forms for ODBC data sources.
Finally, you used the library routines to build a data-entry form that opens a link to a defined ODBC data source and enables users to read and write data records for the ODBC data source.
Quiz
1. What do the letters ODBC stand for?
2. Why is the ODBC API interface faster than the Microsoft Jet interface when connecting to defined ODBC data sources?
3. What are some of the drawbacks to using the ODBC API to link to databases?
4. What program do you use to define an ODBC data source for the workstation?
5. Can you use the ODBC interface to connect to nondatabase files, such as spreadsheets or text files?

 
< previous page page_756 next page >

If you like this book, buy it!